package com.itheima.article.fagin;

import com.itheima.article.dto.ArticleInfoDto;
import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "leadnews-article",contextId = "addArticleInfoDtoFeign")
public interface AddArticleInfoDtoFeign {
    /**
     * 远程调用文章库微服务进行添加文章
     * @param articleInfoDto 接收数据
     * @return 返回是否添加成功
     */
    @PostMapping("/api/add/ArticleInfoDto")
    ResultVo addArticleInfoDtoFeign(@RequestBody ArticleInfoDto articleInfoDto);
}
